﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVoteMVC.Domain;

namespace MyVoteMVC.BackstageManagement.Controllers
{
    public interface IItemController 
    {
        //增加
        bool CreateItem(string questionID, string projectID, string itemTitle, string itemContent, string itemImage, int IfDefault);
        bool CreateItem(string questionID, string projectID, string itemTitle, string itemContent, byte[] itemImage, int IfDefault);

        void CreateItems(List<VT_Items> items);

        //编辑
        bool EditItem(string questionID, string projectID, string itemID, string itemTitle, string itemContent, string itemImage, int IfDefault);
        //编辑
        bool EditItem(string questionID, string projectID, string itemID, string itemTitle, string itemContent, byte[] itemImage, int IfDefault);



        //获取单个投票项目信息
        void GetItem(string questionID, string itemID);

        void GetItemsBySecond(string lastActivityId);
        void GetItemsBySecond(string lastActivityId,string keyword);

        void GetProjects();
        void GetProjects(string keyword);
    }
}
